//
//  UIImage+YCCamera.swift
//  YCCamera
//
//  Created by Billy on 2024/4/18.
//

import UIKit

extension YCPhotoBrowserWrapper where Base: UIImage {
    static func getImage(_ named: String) -> UIImage? {
        if YCCustomImageDeploy.imageNames.contains(named), let image = UIImage(named: named) {
            return image
        }
        if let image = YCCustomImageDeploy.imageForKey[named] {
            return image
        }
        let path = Bundle.main.path(forResource:"ZLPhotoBrowser", ofType:"bundle")!
        return UIImage(named: named, in: Bundle.init(path: path), compatibleWith: nil)
    }
}
